<template>
    <Modal v-model="modalSs00011" title="事前查验结果打印" @on-ok="onOk" ok-text="打印"
           width="850" cancel-text="关闭" style="position:relative;">
        <Ss00011Print :ss12001Id="ss12001Id" @changeSubmit="changeSubmit" ref="child"/>
    </Modal>
</template>

<script>
    import Ss00011Print from "../../ss00011/ss00011Print";
    import {CommonMixin} from '@/views/common/js/CommonMixin'

    export default {
        name: "ss00011-print-modal",
        mixins: [CommonMixin],
        components: {
            Ss00011Print,

        },
        data() {
            return {
                modalSs00011: false,
                ss12001Id: "",
                submitDisabled: false
            }
        },
        methods: {
            //打印事件
            onOk() {
                this.$refs.child.goPrint();
            },
            edit(ss12001Id) {
                this.ss12001Id = ss12001Id;
                this.$refs.child.key = this.uuid();
                this.$refs.child.edit(ss12001Id);
                this.modalSs00011 = true;
            },
            changeSubmit() {
                this.$emit("changeSubmit");
            }
        }
    }
</script>

<style scoped>

</style>